home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / funcity / tokyo / flagirl.dcr / 00002_girl script.ls < prev    next >
Encoding:
Text File  |  2017-09-21  |  2.8 KB  |  100 lines

  1. property acount, snum, cnum, animstep
  2. global getlinggirlnum
  3.  
  4. on birth me, lh, lv, sanum
  5.   set snum to sanum
  6.   set cnum to the number of cast "g_de.loop"
  7.   set the puppet of sprite snum to 1
  8.   set the type of sprite snum to 1
  9.   set the castNum of sprite snum to cnum
  10.   set the ink of sprite snum to 36
  11.   set the foreColor of sprite snum to 255
  12.   set the backColor of sprite snum to 0
  13.   set the locH of sprite snum to lh
  14.   set the locV of sprite snum to lv
  15.   set animstep to 0
  16.   return me
  17. end
  18.  
  19. on getling me
  20.   if getlinggirlnum >= 9 then
  21.     exit
  22.   end if
  23.   if cnum <> the number of cast "g_de.loop" then
  24.     puppetSound("ops")
  25.     exit
  26.   end if
  27.   set cnum to the number of cast "g_ling.loop"
  28.   set the castNum of sprite snum to cnum
  29.   set animstep to 50
  30.   set ccnum to the number of cast "getLingGirl"
  31.   set getlinggirlnum to getlinggirlnum + 1
  32.   set the puppet of sprite (getlinggirlnum + 7) to 1
  33.   set the blend of sprite (getlinggirlnum + 7) to 100
  34.   set the stretch of sprite (getlinggirlnum + 7) to 1
  35.   set the castNum of sprite (getlinggirlnum + 7) to ccnum
  36.   set the height of sprite (getlinggirlnum + 7) to the height of cast ccnum / 2
  37.   set the width of sprite (getlinggirlnum + 7) to the width of cast ccnum / 2
  38.   puppetSound("win")
  39.   puppetSound(2, the number of cast "bgm")
  40.   if getlinggirlnum >= 9 then
  41.     showscore()
  42.   end if
  43. end
  44.  
  45. on changegirl me
  46.   set animstep to animstep - 1
  47.   if animstep > 0 then
  48.     exit
  49.   end if
  50.   if cnum = the number of cast "g_ling.loop" then
  51.     if random(2) = 1 then
  52.       if random(4) = 1 then
  53.         set cnum to the number of cast "g_fall.loop"
  54.       else
  55.         set cnum to the number of cast "g_miss.loop"
  56.       end if
  57.       set the castNum of sprite snum to cnum
  58.     end if
  59.     set animstep to 10
  60.   else
  61.     if cnum = the number of cast "g_fall.loop" then
  62.       set cnum to the number of cast "g_re.loop"
  63.       set the castNum of sprite snum to cnum
  64.       set animstep to 12
  65.     else
  66.       if cnum = the number of cast "g_miss.loop" then
  67.         set cnum to the number of cast "g_de.loop"
  68.         set the castNum of sprite snum to cnum
  69.       else
  70.         if cnum = the number of cast "g_re.loop" then
  71.           set cnum to the number of cast "g_ling.loop"
  72.           set the castNum of sprite snum to cnum
  73.           puppetSound(2, the number of cast "bgm")
  74.           set animstep to 30
  75.         end if
  76.       end if
  77.     end if
  78.   end if
  79. end
  80.  
  81. on setdegirl me
  82.   if cnum = the number of cast "g_ling.loop" then
  83.     exit
  84.   end if
  85.   set cnum to the number of cast "g_de.loop"
  86.   set the castNum of sprite snum to cnum
  87. end
  88.  
  89. on setloopgirl me
  90.   set cnum to the number of cast "g_ling.loop"
  91.   set the castNum of sprite snum to cnum
  92.   set animstep to 40
  93. end
  94.  
  95. on setmissgirl me
  96.   set cnum to the number of cast "g_miss.loop"
  97.   set the castNum of sprite snum to cnum
  98.   set animstep to 10
  99. end
  100.